package com.lp.business.model;

import java.util.Date;

import javax.persistence.*;
import org.iframework.support.spring.hibernate.model.BaseHibernateModelSupport;

/**
 * 会员信息模型
 * 
 * @author lp
 * @date 2018-08-08 18:23:41
 */
@Entity
@Table(name = "member")
@org.hibernate.annotations.Table(appliesTo = "member", comment = "会员信息模型")
//@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class Member extends BaseHibernateModelSupport {
	private static final long serialVersionUID = 1L;
	
	/** 会员姓名 */
	@Column(columnDefinition = "varchar(64)  comment '会员姓名'")
	private String userName;
	
	/** 昵称 */
	@Column(columnDefinition = "varchar(128)  comment '昵称'")
	private String nickName;
	
	/** 手机号 */
	@Column(columnDefinition = "varchar(32)  comment '手机号'")
	private String mobile;
	
	/** 账号 */
	@Column(columnDefinition = "varchar(32)  comment '账号'")
	private String loginName;
	
	/** 密码 */
	@Column(columnDefinition = "varchar(32)  comment '密码'")
	private String loginPwd;
	
	/** 职业 */
	@Column(columnDefinition = "varchar(64)  comment '职业'")
	private String career;
	
	/** 邮箱 */
	@Column(columnDefinition = "varchar(64)  comment '邮箱'")
	private String email;
	
	/** 头像 */
	@Column(columnDefinition = "varchar(128)  comment '头像'")
	private String faceImg;
	
	/** 微信openId */
	@Column(columnDefinition = "varchar(64)  comment '微信openId'")
	private String openId;
	
	/** 最后登录IP地址 */
	@Column(columnDefinition = "varchar(32)  comment '最后登录IP地址'")
	private String lastLoginIp;
	
	/** 最后登录时间 */
	@Column(columnDefinition = "datetime  comment '最后登录时间'")
	private Date lastLoginTime;
	
	/** 备注信息 */
	@Column(columnDefinition = "varchar(512)  comment '备注信息'")
	private String remark;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getLoginPwd() {
		return loginPwd;
	}

	public void setLoginPwd(String loginPwd) {
		this.loginPwd = loginPwd;
	}

	public String getCareer() {
		return career;
	}

	public void setCareer(String career) {
		this.career = career;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFaceImg() {
		return faceImg;
	}

	public void setFaceImg(String faceImg) {
		this.faceImg = faceImg;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getLastLoginIp() {
		return lastLoginIp;
	}

	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}
